package bean;

import java.util.ArrayList;
import java.util.Collection;

@SuppressWarnings({"unchecked", "rawtypes"})
public class VOList<T> {
	
	public ArrayList getVoList(Collection collection) {
		ArrayList<T> array = new ArrayList<T>();
		for (Object o : collection) {
			try {
				EntidadPersistente entidad = (EntidadPersistente)o;
				array.add((T) entidad.getVO());
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return array;
	}

}
